package com.datalinkx.dataclient.config;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 山顶洞人郑某
 * @className ClientConfig.java
 * @date 2025 02 27
 */
@Data
@Builder
public class ClientConfig {
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class ServicePropertieBean {
        //调用路径
        private String url;
        //连接超时时间
        private Integer connectTimeoutMs;
        private Integer callTimeoutMs;
        private Integer readTimeoutMs;
        //是否打印调用栈信息
        private Boolean logging = false;
        //调用返回的status状态不符合要求的 抛出异常
        private Boolean errorThrow = true;
    }

}
